from rest_framework.serializers import ModelSerializer

from cart.models import Cart
from course.models import Course


class CartSer(ModelSerializer):

    class Meta:
        model = Cart
        fields = '__all__'
class CourseSer(ModelSerializer):
    class Meta:
        model = Course
        fields = '__all__'
class CartListSer(ModelSerializer):
    course = CourseSer()
    class Meta:
        model = Cart
        fields = '__all__'